import request from '@/utils/request'

// 查询项目体检列表
export function listExamintions(query) {
  return request({
    url: '/system/examintions/list',
    method: 'get',
    params: query
  })
}

// 查询项目体检详细
export function getExamintions(exId) {
  return request({
    url: '/system/examintions/' + exId,
    method: 'get'
  })
}

// 新增项目体检
export function addExamintions(data) {
  return request({
    url: '/system/examintions',
    method: 'post',
    data: data
  })
}

// 修改项目体检
export function updateExamintions(data) {
  return request({
    url: '/system/examintions',
    method: 'put',
    data: data
  })
}

// 删除项目体检
export function delExamintions(exId) {
  return request({
    url: '/system/examintions/' + exId,
    method: 'delete'
  })
}

export function ExamintionsProjectName() {
  return  request({
    url: '/system/examintions/getExamintionsProjectName',
    method: 'put'
  })
}
